home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
clang
/
pgp20src.zip
/
CCC
< prev
next >
Wrap
Text File
|
1992-07-24
|
320b
|
26 lines
#!/bin/sh
#
# script to compile ANSI source with a K&R compiler and unproto.
#
while :
do
case $1 in
-c) ;;
-o) shift ;;
*.c) break ;;
*) arg="$arg $1" ;;
esac
shift
done
set -e
f=$1
shift
b=`basename $f .c`
cc -E $arg $f | unproto/unproto >${b}.i
cc -c $arg ${b}.i $*
rm ${b}.i